package org.jtb.quickr;

/**
 * Photo sizes. This class encapsulates the valid Flickr photo sizes.
 */
public class PhotoSize {
    /**
     * Small square photo size.
     */
    public static final PhotoSize SMALL_SQUARE = new PhotoSize("s");
    /**
     * Thumbnail photo size.
     */
    public static final PhotoSize THUMBNAIL = new PhotoSize("t");
    /**
     * Small photo size.
     */
    public static final PhotoSize SMALL = new PhotoSize("m");
    /**
     * Medium photo size.
     */
    public static final PhotoSize MEDIUM = new PhotoSize("-");
    /**
     * Large photo size.
     */
    public static final PhotoSize LARGE = new PhotoSize("b");
    /**
     * Original photo size.
     */
    static final PhotoSize ORIGINAL = new PhotoSize("o");
    
    private String sizeString;
    
    private PhotoSize(String s) {
        this.sizeString = s;
    }
    
    /**
     * Get the string representation of this object.
     * @return This object as a string.
     */
    public String toString() {
        return sizeString;
    }
    
}
